import request from '@/utils/request'

// 查询健康百科文章列表
export function listHealthArticle(query) {
  return request({
    url: '/manage/healthArticle/list',
    method: 'get',
    params: query
  })
}

// 查询健康百科文章详细
export function getHealthArticle(articleId) {
  return request({
    url: '/manage/healthArticle/' + articleId,
    method: 'get'
  })
}

// 新增健康百科文章
export function addHealthArticle(data) {
  return request({
    url: '/manage/healthArticle',
    method: 'post',
    data: data
  })
}

// 修改健康百科文章
export function updateHealthArticle(data) {
  return request({
    url: '/manage/healthArticle',
    method: 'put',
    data: data
  })
}

// 删除健康百科文章
export function delHealthArticle(articleId) {
  return request({
    url: '/manage/healthArticle/' + articleId,
    method: 'delete'
  })
}
